package com.crazymo.ndk.jni;

import com.crazymo.ndk.MainActivity;
import com.crazymo.ndk.bean.Blog;

import java.util.List;
import java.util.Map;

/**
 * Created by cmo on 2018/8/26  13:37
 */
public class JNIHelper {
    public native void sendBasicType(double df,int k,long lk,float f,boolean b,char c);

    public native void sendBasicRefType(Double df,Integer k,Long lk,Float f,Boolean b,Character c);

    public native void sendString(String s,String[] strArr);

    public native void sendBean(Blog blog);

    public native void sendArrays(int[] ids, Blog[] blogs);

    public native void sendList(List<String> list);

    public native void sendMap(Map<String,String> map);

    public native int getBasicData();

    public native String getStringData();

    public native int[] getArrayData(int pI);

    public native Blog[] getObject();

    public native List<String> getList(int size);

    public native Map<String,String> getMap();

    public native void createNativeThread();

    public native void testUnSync();


    public native void runNativeCallJava(MainActivity pActivity);
}
